import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CommonModule }     from '@angular/common';
import { FileUploadModule } from 'ng2-file-upload';

import { GbSubjectSharedModule } from '../../shared';
import {
    CollegeMySuffixService,
    CollegeMySuffixPopupService,
    CollegeMySuffixComponent,
    CollegeMySuffixDetailComponent,
    CollegeMySuffixDialogComponent,
    CollegeMySuffixPopupComponent,
    CollegeMySuffixImportComponent,
    CollegeMySuffixDeletePopupComponent,
    CollegeMySuffixDeleteDialogComponent,
    collegeRoute,
    collegePopupRoute,
    CollegeMySuffixResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...collegeRoute,
    ...collegePopupRoute,
];

@NgModule({
    imports: [
        GbSubjectSharedModule,
        CommonModule,
        FileUploadModule,
        RouterModule.forChild(ENTITY_STATES)
    ],
    declarations: [
        CollegeMySuffixComponent,
        CollegeMySuffixDetailComponent,
        CollegeMySuffixDialogComponent,
        CollegeMySuffixDeleteDialogComponent,
        CollegeMySuffixImportComponent,
        CollegeMySuffixPopupComponent,
        CollegeMySuffixDeletePopupComponent,
    ],
    entryComponents: [
        CollegeMySuffixComponent,
        CollegeMySuffixDialogComponent,
        CollegeMySuffixPopupComponent,
        CollegeMySuffixDeleteDialogComponent,
        CollegeMySuffixDeletePopupComponent,
        CollegeMySuffixImportComponent,
    ],
    providers: [
        CollegeMySuffixService,
        CollegeMySuffixPopupService,
        CollegeMySuffixResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class GbSubjectCollegeMySuffixModule {}
